﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace MetaProviderTest
{
	class Program
	{
		static void Main(string[] args)
		{
			using (var db = new CTAdminEntitiesWithWrappers())
			{
				var c = db.COMPANies.FirstOrDefault();
				foreach (var col in db.LastMetadata)
				{
					Console.WriteLine(string.Format("{0}:{1}  decimal {2}.{3} nullable {4}", col.ColumnName, col.ColumnSize, col.NumericPrecision, col.NumericScale, col.IsNullable));
				}
				Console.ReadKey();
			}
		}
	}
}
